//
//  Constant.swift
//  项目框架
//
//  Created by yang on 16/2/26.
//  Copyright © 2016年 itcast. All rights reserved.
//

import Foundation

/*
App Key：2135037753
App Secret：276c8173e9366448b5f19d3b3bbbf074
http://www.baidu.com

*/

let App_URL = "http://www.baidu.com"

let App_KEY = "2135037753"

let App_SECRET = "276c8173e9366448b5f19d3b3bbbf074"


let kNotificaionChangeRootVC = "ChangeRootVC"


func printLog<T>(message: T,
    logError: Bool = false,
    file: String = __FILE__,
    method: String = __FUNCTION__,
    line: Int = __LINE__)
{
    if logError {
        print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
    } else {
        #if DEBUG
            print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
        #endif
    }
}




